package pro.wy.decoratorpattern.decorator;

import pro.wy.decoratorpattern.interfaces.IPlayerChinese;

public class YaomingNbaDecorator extends NbaDecorator {

	public YaomingNbaDecorator(IPlayerChinese player) {
		super(player);
	}

	private void talkEnglish(IPlayerChinese player) {
		System.out.println("我姚明会讲英语了！！！！！！");
	}

	@Override
	public void play() {
		player.play();
		talkEnglish(player);
	}
}
